<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       function time(miao){
        let h=parseInt(miao/60/60)
        if(h<10){
            t1='0'+h
        }
        else{
            t1=h
        }
        let m=parseInt(miao/60%60)
        if(m<10){
            t2='0'+m
        }
        else{
            t2=m
        }
        let s=parseInt(miao%60)
        if(s<10){
            t3='0'+s
        }
        else{
            t3=s
        }
        return (`转换完毕之后是${t1}小时${t2}分${t3}秒`)
       }
       document.write(time(+prompt('请输入秒数')))
    </script>
</body>
</html>